package com.systelab.modulabgold.server.webservice.request;

public class RequestWSProxy implements com.systelab.modulabgold.server.webservice.request.RequestWS_PortType {
  private String _endpoint = null;
  private com.systelab.modulabgold.server.webservice.request.RequestWS_PortType requestWS_PortType = null;
  
  public RequestWSProxy() {
    _initRequestWSProxy();
  }
  
  public RequestWSProxy(String endpoint) {
    _endpoint = endpoint;
    _initRequestWSProxy();
  }
  
  private void _initRequestWSProxy() {
    try {
      requestWS_PortType = (new com.systelab.modulabgold.server.webservice.request.RequestWS_ServiceLocator()).getRequestWSSoapHttpPort();
      if (requestWS_PortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)requestWS_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)requestWS_PortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (requestWS_PortType != null)
      ((javax.xml.rpc.Stub)requestWS_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.systelab.modulabgold.server.webservice.request.RequestWS_PortType getRequestWS_PortType() {
    if (requestWS_PortType == null)
      _initRequestWSProxy();
    return requestWS_PortType;
  }
  
  public java.lang.String processMessage(java.lang.String parameters) throws java.rmi.RemoteException{
    if (requestWS_PortType == null)
      _initRequestWSProxy();
    return requestWS_PortType.processMessage(parameters);
  }
  
  public java.lang.String cancelRequest(java.lang.String string_1, java.lang.String string_2) throws java.rmi.RemoteException{
    if (requestWS_PortType == null)
      _initRequestWSProxy();
    return requestWS_PortType.cancelRequest(string_1, string_2);
  }
  
  public java.lang.String collectContainers(java.lang.String string_1, java.lang.String string_2) throws java.rmi.RemoteException{
    if (requestWS_PortType == null)
      _initRequestWSProxy();
    return requestWS_PortType.collectContainers(string_1, string_2);
  }
  
  public java.lang.String createRequest(java.lang.String string_1, java.lang.String string_2) throws java.rmi.RemoteException{
    if (requestWS_PortType == null)
      _initRequestWSProxy();
    return requestWS_PortType.createRequest(string_1, string_2);
  }
  
  public java.lang.String modifyRequest(java.lang.String string_1, java.lang.String string_2) throws java.rmi.RemoteException{
    if (requestWS_PortType == null)
      _initRequestWSProxy();
    return requestWS_PortType.modifyRequest(string_1, string_2);
  }
  
  
}